package com.mapper;

import com.pojo.Dabian;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Timestamp;
import java.util.List;

@Mapper
public interface DabianMapper  {


    List<Dabian> selectList(Object o);

    void updateById(Dabian dabian);

    @Insert("insert into dabian(headTeacherId,courseName,headTeacherName,secondTeacherName,threadTeacherName,studentId,studentName,DabianTime,state) values (#{headTeacherId},#{courseName},#{headTeacherName},#{secondTeacherName},#{threadTeacherName},#{studentId},#{studentName},#{timestamp},#{state})")
    void insertDabianTeam(String courseName, Integer headTeacherId, String headTeacherName, String secondTeacherName, String threadTeacherName, Integer studentId, String studentName, Timestamp timestamp, Integer state);

    @Insert("insert into dabian(courseName,headTeacherName) values (#{courseName},#{headTeacherName})")
    void insertDabianTeam2(String courseName, String headTeacherName);
}
